package com.mc.ssm.book.dao;

import com.mc.ssm.book.model.Book;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhangzhenguo on 2017/2/11.
 */
public interface BookDao {

    Book selectBookById(@Param("id") long bookId);

    int saveBook(Book book);

    int updateBook(Book book);

    int deleteBookById(@Param("id") long id);

    List<Book> selectAllBooks();

    List<Book> selectBooksByName(@Param("bookName") String bookName);

}
